<template>
    <h3>自定义v-model通过defineModel（vue3.4+才可以用）</h3>
    <el-input v-model="title" clearable />
</template>
<script setup lang="ts">
const title = defineModel('title')
</script>
<style lang="scss" scoped>
.el-input{
    max-width: 200px;
}
</style>